from PyQt5.QtCore import pyqtSignal, QObject
from PyQt5.QtGui import QColor


class CommonSignals(QObject):
    """ Signal bus in Groove Music """

    playSignal = pyqtSignal()
    playAlbumSignal = pyqtSignal(str,str)
    playPreSignal = pyqtSignal()
    playNextSignal = pyqtSignal()
    playSongSignal = pyqtSignal(int)
    volumeChangedSignal = pyqtSignal(int)
    volumeButtonSignal = pyqtSignal()
    progressSliderMovedSignal = pyqtSignal(int)
    showDetailSignal = pyqtSignal(int)
    backHistorySignal = pyqtSignal()
    changeTitleColorSignal = pyqtSignal(QColor)
    changePlayBarColorSignal = pyqtSignal(QColor)
    changeSongInfoSignal = pyqtSignal(str,str)
    changeCoverSignal = pyqtSignal(str)
    changeSongSignal = pyqtSignal(int)
    playChooseSongSignal = pyqtSignal(list,int)
    currentDurationChangeSignal = pyqtSignal(str) # 歌曲当前时间变化
    totalDurationChangeSignal = pyqtSignal(str) # 歌曲总时长显示变化
    miniWindowOpenSignal = pyqtSignal()
    miniWindowCloseSignal = pyqtSignal()



CommonSignal = CommonSignals()